﻿using System.Net;
using System.Web.Mvc;
using Microsoft.AspNet.Identity;

namespace ZSoft.Telegram.UI.Web.Infrastructure.AppEvents.BaseControllers
{
    public abstract class BaseController: Controller
    {
        public ActionResult HttpAccepted()
        {
            return new HttpStatusCodeResult(HttpStatusCode.Accepted);
        }


        public int CurrentUserId
        {
            get
            {
                return User.Identity.GetUserId<int>();
            }
        }
    }
}